package com.superm.service;

import com.superm.entity.StorgageRack;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 货架业务逻辑
 */
public interface StorgageRackService {

    /**
     * 查询货架信息
     * @return
     */
    List<StorgageRack> selectStorgageRack(StorgageRack storgageRack,Integer pageNo,Integer pageSize);

    /**
     * 查询货架条数
     * @param storgageRack
     * @return
     */
    int selectStorgageRackCount(StorgageRack storgageRack);


    /**
     * 添加货架信息
     * @param storgageRack
     * @return
     */
    Map<String,Object> addStogageRack(StorgageRack storgageRack);


    /**
     * 修改货架信息
     * @param storgageRack
     * @return
     */
    Map<String,Object> updateStogageRack(StorgageRack storgageRack);


    /**
     * 根据编号查询货架信息
     * @param storgageRackId
     * @return
     */
    StorgageRack selectIdStogageRack(Integer storgageRackId);


    /**
     * 异步方式查询指定货架信息
     * @param storgageRackId
     * @return
     */
    Map<String,Object> ajaxSelectIdStogageRack(Integer storgageRackId);


    /**
     * 删除货架信息
     * @param storgageRackId
     * @return
     */
    Map<String,Object> deleteStogageRack(Integer storgageRackId);


}
